package cc.mrbird.demo.domain;

import org.springframework.beans.factory.FactoryBean;

/**
 * @author: chenhs
 * @date: Created in 21:12 2020/3/17
 **/
public class CherryFactoryBean implements FactoryBean<Cherry> {
    @Override
    public Cherry getObject() throws Exception {
        return new Cherry();
    }

    @Override
    public Class<?> getObjectType() {
        return Cherry.class;
    }

    @Override
    public boolean isSingleton() {
        return false;
    }
}
